Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add http service to send email for shares #3304

Merged
merged 14 commits into from
Oct 4, 2022

Conversation

gmgigi96
Copy link
Member

@gmgigi96 gmgigi96 commented Oct 3, 2022

This PR adds an http service, exposed by default under /mailer, that for a given list of share ids, will send the email to the recipient of these shares.

Example:
curl -X POST localhost:9143/mailer -u <user> -d "id=<share_id>"
{"recipients":["<email>"]}

@update-docs
Copy link

update-docs bot commented Oct 3, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@gmgigi96 gmgigi96 requested review from ishank011 and a team as code owners October 3, 2022 14:22
@micbar
Copy link
Member

micbar commented Oct 3, 2022

JFYI: there is already an event based solution available https://github.com/owncloud/ocis/tree/master/services/notifications

@labkode
Copy link
Member

labkode commented Oct 4, 2022

@micbar thanks, that is the next step. We have already a NATS cluster and we plan to create the hooks with the same payload as you have in edge so the transition will be easier.

@labkode labkode merged commit a50b5ad into cs3org:master Oct 4, 2022
vascoguita pushed a commit to vascoguita/reva that referenced this pull request Oct 18, 2022
vascoguita pushed a commit to vascoguita/reva that referenced this pull request Oct 18, 2022
vascoguita pushed a commit to vascoguita/reva that referenced this pull request Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants